package com.esionwong.basic.framework.convert;

import com.esionwong.basic.entity.SysPermission;
import com.esionwong.basic.vo.SysPermissionTreeVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * SysPermission类对象书香转换器
 *
 * @author esionwong
 */
@Mapper
public interface SysPermissionConvert {

    SysPermissionConvert INSTANCE = Mappers.getMapper(SysPermissionConvert.class);

    /**
     * SysPermission对象转换成SysPermissionTreeVo对象
     *
     * @param sysPermission 权限
     * @return 权限树形列表
     */
    SysPermissionTreeVo permissionToTreeVo(SysPermission sysPermission);
}
